package hht.dragon.blog.service.impl;

import hht.dragon.blog.mapper.TypeMapper;
import hht.dragon.blog.model.Type;
import hht.dragon.blog.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 类型服务实现类.
 * User: huang
 * Date: 18-6-24
 */
@Service
public class TypeServiceImpl implements TypeService {

    @Autowired
    private TypeMapper typeMapper;

    @Override
    public List<Type> getAllTypes() {
        return typeMapper.getAllType();
    }
}
